package com.zlf.service;

import com.zlf.entity.RoleEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhanglongfei
 * @since 2021-05-24
 */
public interface RoleService extends IService<RoleEntity> {

    /**
     * 根据用户id获取用户的角色集合
     *
     * @param userId
     * @return
     */
    List<RoleEntity> getRolesByUserId(Integer userId);

}
